package mapper.user;

import org.apache.ibatis.annotations.Param;
import pojo.Supplier;
import pojo.SysUser;

import java.util.List;

public interface SupplierMapper {
    public int count();
    public List<Supplier> getSupplierList();

    //根据供货商id查询供货商信息及入库记录
    public List<Supplier> getStorageRecordByIdList(@Param("id")Integer id);

    //根据供货商编码供货商名称模糊查询供货商表
    public List<Supplier> getStorageRecordByCodeList(@Param("supCode")String supCode, @Param("supName")String supName);

    //新增供货商
    public int add(Supplier supplier);

    //根据供货商id删除供货商信息
    public int delete(@Param("id")Integer id);

    //根据供货商id修改供货商信息
    public int update(Supplier supplier);

    //分页查询供货商列表
   public List<Supplier> selectPageList(@Param("supName") String supName,@Param("pageBegin") Integer pageBegin,@Param("pageSize") Integer pageSize);
}
